package com.itheima.day04.ZuoYe.ZuoYe4;

import java.util.Scanner;

public class ZuoYe4 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String s = sc.nextLine();
        StringBuffer sb = new StringBuffer(s);
        System.out.println(sb.reverse());
        if(s.equals(sb.reverse().toString())){
            System.out.println("是对称的");
        }else{
            System.out.println("不是对称的");
        }

    }

}
